package homework;

/**
 * @author wly
 * @create 2022-12-10 23:06
 */
public class Homework05 {
    public static void main(String[] args) {
        A a = new A();
        a.f1();
    }
}

class A{
    private String name;

    public void f1(){
        class B{
            private final String NAME = "wly";
            public void show(){
                System.out.println("name = " + NAME);
                System.out.println("外部类 name = " + A.this.name);
            }
        }

        B b = new B();
        b.show();
    }
}
